package com.lyncs.ods.modules.setting.service;

import com.lyncs.ods.constant.LyncsOdsConstant;
import com.lyncs.ods.modules.setting.model.ShortLinkInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 短链信息表 服务类
 * </p>
 *
 * @author alex
 * @since 2022-05-31
 */
public interface ShortLinkInfoService extends IService<ShortLinkInfo> {

    ShortLinkInfo generateShortLink(LyncsOdsConstant.TxnType type, Long refId, Long invitor, Long invited);

    String generateShortLink(@NotNull String completeUrl, LyncsOdsConstant.TxnType type, Long refId);

    String getLinkByKey(String key);

    String generateShortLink(String url);
}
